/**
 * Copyright (C) 2011 - @le.nguyen
 * @Created Aug 11, 2011
 *
 * TODO
 */
package com.conan.app.dailyflickr.provider;

import android.net.Uri;

/**  */
public class Constants {
	public static final boolean LOG = true;
	public static final String TAG = "DailyFlickrProvider";	
    
	public static final String DATABASE_NAME 		= "dailyflickr.db";
    public static final String TABLE_WIDGET_NAME 	= "widgets_table"; 
    public static final String TABLE_PHOTO_NAME 	= "photos_table";
    
    public static final int DATABASE_VERSION	= 2;
    
    public static final int VER_ORIGINAL 		= 0;
    public static final int VER_ADD_METAR 		= 0;
    
	public static final String PROVIDER_NAME 	= "com.conan.dailyflickr.provider.Widgets";
	public static final Uri CONTENT_URI 		= Uri.parse("content://" + PROVIDER_NAME + "/widgets/");
	public static final Uri CONTENT_PHOTO_URI 		= Uri.parse("content://" + PROVIDER_NAME + "/photos/");
	
	// table column
	public class WIDGET_TABLE {
		public static final String _ID 		= "widget_id";
		public static final String _PAGE 	= "page";
		public static final String _DATE 	= "date";

		public static final String _URL 	= "url";
		public static final String _TITLE 	= "title";
		public static final String _LAYOUT 	= "layout";
	} 
	
	public class PHOTO_TABLE {
		public static final String _WIDGET_ID 		= "widget_id";
		public static final String _NO 		= "no";
		public static final String _ID 		= "photo_id";

		public static final String _URL 	= "url";
		public static final String _TITLE 	= "title";
	}
}
